package org.intelligentsia.temporal.series;

public class Serie {
	/**
	 * Universal Identifier.
	 */
	private String	guid;

	private long	created;

	private long	lastUpdate;

	/**
	 * Build a new instance of <code>Serie</code>
	 */
	public Serie() {
		super();
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(final String guid) {
		this.guid = guid;
	}

	public long getCreated() {
		return created;
	}

	public void setCreated(final long created) {
		this.created = created;
	}

	public long getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(final long lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((guid == null) ? 0 : guid.hashCode());
		return result;
	}

	@Override
	public boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final Serie other = (Serie) obj;
		if (guid == null) {
			if (other.guid != null) {
				return false;
			}
		} else if (!guid.equals(other.guid)) {
			return false;
		}
		return true;
	}

}
